$(document).ready(function() {
    setInterval('checkText()',31000);
});



function checkText()
{
	$.get("mod.html", function(data) {
		if (!$.oldDataToCompare)
		{
			$.oldDataToCompare = 
			{
				oldData : data
			};
		}
		else if (data != $.oldDataToCompare.oldData)
		{
			$.oldDataToCompare.oldData = data;
			window.location.href = window.location.href;
			
		}
    });
}